<?php

namespace models\Exception\Business;

use Exception;


class AddressException extends Exception {
    const ADDRESS_IS_NOT_EXISTS = '用户地址不存在';
    const ADDRESS_IS_NOT_EXISTS_NO = '404';

    const ADDRESS_CREATE_FAILURE = '用户地址创建失败';
    const ADDRESS_CREATE_FAILURE_NO = '422';

    const ADDRESS_EDIT_FAILURE = '用户地址编辑失败';
    const ADDRESS_EDIT_FAILURE_NO = '422';

    const ADDRESS_ID_IS_EMPTY = '用户地址编号不能为空';
    const ADDRESS_ID_IS_EMPTY_NO = '400';

    const ADDRESS_DENIED = "不能修改别人的收货地址";
    const ADDRESS_DENIED_NO = "403";

    const ADDRESS_ERROR = "地址错误，请修改，不要包含'#,&'等特殊字符";
    const ADDRESS_ERROR_NO = "403";

}
